﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AES小工具
{
    public partial class FrmMain : Form
    {
        FrmAes frmAes = new FrmAes();
        FrmCRC32 frmCRC32 = new FrmCRC32();
        FrmDataTran frmDataTran = new FrmDataTran();
        FrmJson frmJson = new FrmJson();
        FrmJwt frmJwt = new FrmJwt();
        FrmIotDecode frmIotDecode = new FrmIotDecode();
        FrmMqtt frmMqtt = new FrmMqtt();  
        FrmDateTime frmDateTime = new FrmDateTime();
        FrmLinuxToolLog frmLinuxToolLog = new FrmLinuxToolLog();
        FrmIpCalc frmIpCalc = new FrmIpCalc();
        FrmFloat frmFloat = new FrmFloat();

        public FrmMain()
        {
            InitializeComponent();
        }

        private void FrmMain_Load(object sender, EventArgs e)
        {
            tabControl1.SelectedIndex = 0;

            

            frmAes.TopLevel = false;
            frmAes.Parent = tabPage1;// panelAes;
            frmAes.FormBorderStyle = FormBorderStyle.None;
            frmAes.Show();

            frmCRC32.TopLevel = false;
            frmCRC32.Parent = tabPage2;
            frmCRC32.FormBorderStyle = FormBorderStyle.None;
            frmCRC32.Show();

            frmDataTran.TopLevel = false;
            frmDataTran.Parent = tabPage3;
            frmDataTran.FormBorderStyle = FormBorderStyle.None;
            frmDataTran.Show();

            frmJson.TopLevel = false;
            frmJson.Parent = tabPage4;
            frmJson.FormBorderStyle = FormBorderStyle.None;
            frmJson.Dock = DockStyle.Fill;
            frmJson.Show();

            frmJwt.TopLevel = false;
            frmJwt.Parent = tabPage5;
            frmJwt.FormBorderStyle = FormBorderStyle.None;
            frmJwt.Dock = DockStyle.Fill;
            frmJwt.Show();

            frmIotDecode.TopLevel = false;
            frmIotDecode.Parent = tbIotDecode;
            frmIotDecode.FormBorderStyle = FormBorderStyle.None;
            frmIotDecode.Dock = DockStyle.Fill;
            frmIotDecode.Show();

            frmMqtt.TopLevel = false;
            frmMqtt.Parent = tpMqtt;
            frmMqtt.FormBorderStyle = FormBorderStyle.None; 
            frmMqtt.Dock = DockStyle.Fill;
            frmMqtt.Show();

            frmDateTime.TopLevel = false;
            frmDateTime.Parent = tabDtTran;
            frmDateTime.FormBorderStyle = FormBorderStyle.None;
            frmDateTime.Dock = DockStyle.Fill;
            frmDateTime.Show();

            frmLinuxToolLog.TopLevel = false;
            frmLinuxToolLog.Parent = tpLinuxToolLog;
            frmLinuxToolLog.FormBorderStyle = FormBorderStyle.None;
            frmLinuxToolLog.Dock = DockStyle.Fill;
            frmLinuxToolLog.Show();

            frmIpCalc.TopLevel = false;
            frmIpCalc.Parent = tpIpCalc;
            frmIpCalc.FormBorderStyle = FormBorderStyle.None;
            frmIpCalc.Dock = DockStyle.Fill;
            frmIpCalc.Show();

            frmFloat.TopLevel = false;
            frmFloat.Parent = tabFloat;
            frmFloat.FormBorderStyle = FormBorderStyle.None;
            frmFloat.Dock = DockStyle.Fill;
            frmFloat.Show();

        }
    }
}
